const babelCore = require('@babel/core')

const code = `
    var abstract = 1;
    var x = abstract + 1;
`

const result = babelCore.transformSync(code, { plugins: ["@babel/plugin-transform-reserved-words"]})

console.log(result.code);